home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Misc / insert doubleQuotes.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  519 b   |  20 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. /**
  5. @Tool: insert DoubleQuotes~wraps a selection with double quotes. 
  6. @EndTool: 
  7. @Summary: insert DoubleQuotes~wraps a selection with double quotes.
  8. */
  9.  
  10. var editor = getActiveEditor();
  11. if (editor)
  12. {
  13.   var selection = editor.getSelection();
  14.   editor.insert(selection.endLineIndex, selection.endCharIndex, "\"");
  15.   editor.insert(selection.startLineIndex, selection.startCharIndex, "\"");
  16.   editor.setActive("Insert Double Quotes");
  17. }
  18.  
  19. !!/Script
  20.